import request from '@/utils/request'

// 查询白事列表
export function listWhiteaffair(query) {
  return request({
    url: '/system/whiteaffair/list',
    method: 'get',
    params: query
  })
}

// 查询白事详细
export function getWhiteaffair(id) {
  return request({
    url: '/system/whiteaffair/' + id,
    method: 'get'
  })
}

// 新增白事
export function addWhiteaffair(data) {
  return request({
    url: '/system/whiteaffair',
    method: 'post',
    data: data
  })
}

// 修改白事
export function updateWhiteaffair(data) {
  return request({
    url: '/system/whiteaffair',
    method: 'put',
    data: data
  })
}

// 删除白事
export function delWhiteaffair(id) {
  return request({
    url: '/system/whiteaffair/' + id,
    method: 'delete'
  })
}
